<style>
    .help dt {
        border-left: 4px solid #DFE2E5;
        padding-left: 10px;
        color: #0366D6;
        margin: 15px 0;
    }

    .help dd {
        background-color: #F6F8FA;
        margin: 0;
        padding: 10px;
    }

    .types {
        padding: 10px;
    }

    .types li {
        display: inline-block;
        background: #ff552e;
        padding: 5px 10px;
        border-radius: 10px;
    }

    .types li a {
        font-size: 14px;
        color: #fff;
        text-decoration: none;
    }
</style>
<ul class="types">
    @foreach($types as $typeName=>$tag)
        <li>
            <a href="/_help/{{ $tag }}"> {{ $typeName }} </a>
        </li>
    @endforeach
</ul>

@if ($name)
    <hr>
    <h1>miya("{{ $name }}")</h1>

    @foreach(miya($name)->helpData() as $method=>$value)
        <dl class="help">
            <dt>{{ $method }}({{ implode(',',$value['parms']) }})</dt>
            <dd>
                <pre>{{ $value['doc'] }}</pre>
            </dd>
        </dl>
    @endforeach
@endif
